﻿#pragma once
#include <vector>
#include "AABB.h"

namespace Kriko
{
    struct BVHNode
    {
        int left;
        int right;

        int n, index;
        AABB aabb;
    };
    class BoundingVolumeHierarchy
    {
    public:
        static void BuildBVHForRenderObject(const std::vector<class RenderObject*> renderObjects, std::vector<BVHNode>& nodes, int l, int r, int n);
    };
}

